<div id="tab-system" class="HuiTab">
	<div class="tabBar cl">
		<span class="current">所有未审核的场馆</span>
	</div>
	<br>
</div>
<div>
  <form action="${BASE}/admin/cms/gymnasium/list" id="form_pager_search" method="post">
    <input type="hidden" name="_p_pageNumber" value="${pager.pageNumber}">
    <input type="hidden" name="_p_pageSize" value="${pager.pageSize}">
	<input type="text" class="input-text" style="width:150px" placeholder="场馆名称" id="_s_name" name="_s_name" value="${searchKeys.name!}" >
	<button type="button" class="btn btn-success" onclick="list_search()"><i class="Hui-iconfont">&#xe665;</i> 查找</button>
  </form>
</div>
<div class="cl pd-5 bg-1 bk-gray mt-20"> 
	<span class="r"><select class="select" onchange="list_changeSize(this.value)">
			<option value="10" ${pager.pageSize==10?"selected":""}>10</option>
			<option value="20" ${pager.pageSize==20?"selected":""}>20</option>
			<option value="50" ${pager.pageSize==50?"selected":""}>50</option>
			<option value="100" ${pager.pageSize==100?"selected":""}>100</option>
		</select>
	</span>
</div>
<div class="dataTables_wrapper no-footer">
<table class="table table-border table-bordered table-bg table-striped table-hover">
	<thead>
		<tr class="text-c">
			<th width="40">会所名称</th>
	<th width="150">创建时间 </th>
	<th width="90">状态</th>
	<th width="90">操作</th>
		</tr>
	</thead>
	<tbody>
	<% for(obj in pager.list){ %>
		<tr class="text-c">
			<td>${obj.name}</td>
			<td>${obj.createTime}</td>
			<td>待审核</td>
			<td class="td-manage">
				<a class="btn btn-secondary size-MINI" onclick="examine('${obj.id}')" title="审核" ><i class="Hui-iconfont">&#xe6df;</i> 审核</a> 
			</td>
		</tr>
		<%}%>
	</tbody>
</table>
<%include("/inc/pagging.html",{'pageNumber':pager.pageNumber,'pageCount':pager.pageCount,'recordCount':pager.recordCount}){}%>
</div>
<script type="text/javascript">

function list_search(){
	var $form = $("#form_pager_search");
	var url = $form.attr('action');
	var $input  = $("<input type='hidden' name='_sbtn' value='true' />");
	$form.append($input);
    HtmlRender(url,$form.serializeArray());
}
function list_changeSize(size){
	$("#form_pager_search > [name='_p_pageSize']").val(size);
	var $form = $("#form_pager_search");
	var url = $form.attr('action');
    HtmlRender(url,$form.serializeArray());
}

$(function(){
	table_checkbox_all();
})

function examine(id){
	HtmlRender("${BASE}/admin/cms/gymnasium/edit",{id:id});
}

function list_setState(id,state){
	HtmlRender("${BASE}/admin/cms/comment/setState",{id:id,state:state});
}
</script>